import socket

server = socket.socket()

server.bind(('127.0.0.1',8002))
# 127.0.0.1:8001
server.listen()

while 1:

    conn,addr = server.accept()

    from_brower_msg = conn.recv(1024)
    print(from_brower_msg)

    conn.send(b'HTTP/1.1 200 ok\r\n\r\n')



    conn.send(b'gunduzi')
    # conn.send(data)
    conn.close()